package com.myblog.services;

import com.baomidou.mybatisplus.extension.service.IService;
import com.myblog.domain.GlobalResponse;
import com.myblog.domain.Vo.MenuTreeVo;
import com.myblog.domain.Vo.MenuVo;
import com.myblog.domain.Vo.RoleMenuTreeVo;
import com.myblog.domain.Vo.RoutersVo;
import com.myblog.domain.entity.Menu;

import java.util.List;



public interface MenuService extends IService<Menu>{
    List<String> getPermissionList(Long id);

    GlobalResponse<RoutersVo> getRouters();

    GlobalResponse<List<MenuVo>> getMenu(String status, String menuName);

    GlobalResponse<?> saveMenu(Menu menu);

    GlobalResponse<?> updateMenu(Menu menu);

    GlobalResponse<?> deleteMenu(String id);

    GlobalResponse<List<MenuTreeVo>> getMenuTree();

    GlobalResponse<RoleMenuTreeVo> getRoleMenuTree(Long roleId);
}
